package com.liu.entity;

import cn.hutool.core.annotation.Alias;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Department {
    @TableId(type = IdType.AUTO)
    @Alias("ID")
    private Integer id;
    @Alias("科室名称")
    private String name;
    @Alias("科室介绍")
    private String content;

    private List<Disease> diseaseList;

    //对应科室医生数量
    private Integer num;
}
